package com.example.singleton;

/**
 * 和 Demo1 一个意思
 */
public class Demo2 {
    private static final Demo2 INSTANCE;
    static {
        INSTANCE = new Demo2();
    }
    public static Demo2 getInstance() {
        return INSTANCE;
    }
}
